﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<nelech.Models.DBModel.ForumResponse>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	רשימת תגובות
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2>אשכול <%= Model.subject.title %></h2>
    <h5><%= Model.subject.text %></h5>
 <table>
        <tr>
            <th></th>
            <th>
                שם המשתמש
            </th>
            <th>
                כותרת            </th>
                  <th>
                פרטים</th>
                     
        </tr>

    <% foreach (var subject in Model.responses){%>
<tr>
       <td><%= Html.ActionLink("מחק", "DeleteResponse", "Forum", new{id = subject.id }, null)%></td>
       <td><%= subject.name%></td>
       <td><%= subject.title %></td>
       <td><%= subject.text %></td>
       </tr>
<%} %></table>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
